export const swiperCellBehavior= Behavior({
  data: {
    swiperCellQueue: []
  },
  methods: {
    swiperCellOpen(event) {
      // console.log(event)
      const instance = this.selectComponent(`#${event.target.id}`)
      // console.log(instance)
      this.data.swiperCellQueue.push(instance)
    },
    onSwiperCellPage() {
      this.onSwiperCellCommonClick()
    },
    onSwiperCellClick() {
      this.onSwiperCellCommonClick()
    },
    onSwiperCellCommonClick() {
      this.data.swiperCellQueue.forEach((instance) => {
        instance.close()
      })
      this.data.swiperCellQueue = []
    }
  }
})
